package tagsFilesClientDataBase;

import org.junit.Test;

public class TagFilesDBTest {
	TagFilesDB clientDB = TagFilesDB.getInstance();
	@Test
	public void testGetInstance() {
		clientDB = TagFilesDB.getInstance();
	}

	@Test
	public void testOpenSession() {
		clientDB.openSession();
	}

	@Test
	public void testRemoveAllFiles() {
		clientDB.removeAllFiles();
	}

	@Test
	public void testRemoveAllTags() {
		clientDB.removeAllTags();
	}

	@Test
	public void testSearchByTag() {
		clientDB.searchByTag("orit");
	}
	@Test
	public void testAddTagMethodToDB() {
		clientDB.addTagMethodToDB("C:\\eclips_java\\for_studens3" +
				"\\bin\\client_AutoTag\\MyFileLabeler.class");
	}

	@Test
	public void testAddFileToDB() {
		clientDB.addFileToDB("c:\\droBbox\\yoav.txt");
	}

	@Test
	public void testRemoveFileFromDB() {
		clientDB.removeFileFromDB("orit");
	}

	@Test
	public void testAddTagToDB() {
		clientDB.addTagToDB("yoav","c:\\droBbox\\yoav.txt");
	}

	@Test
	public void testGetFileList() {
		clientDB.getFileList();
	}

	@Test
	public void testGetTagList() {
		clientDB.getTagList();
	}

	@Test
	public void testGetTagMethodList() {
		clientDB.getTagMethodList();
	}

}
